#ifndef CONDITION_H
#define CONDITION_H

#include <pthread.h>

class Lock;

class Condition {
public:
	Condition();
	void wait(Lock *lock);
	void signal();
	void broadcast();
	bool timedWait(Lock *lock, int seconds);

private:
	pthread_cond_t mCondition;
};

#endif
